package tech.waterism.constant;

import java.util.HashSet;
import java.util.Set;

/**
 * 字符串常量
 */
public class StringConstants {

    public static final String PLAN_STRING = "方案";
    public static final String AUTOFORECAST = "自动预报";
    public static final String FORECAST_NORMAL = "日常化预报";
    public static final String REPUBLISH = "继续发布";
    public static final String DASH = "-";
    public static final String SPACE = " ";
    // public static final String AREA_FORECAST = "区域预报";
    public static final String QOUT_STRING = "出流";

    /**
     * 立方米每秒
     */
    public static final String QOUT_UNIT_STRING = "m\u00b3/s";
    /**
     * 方案输入类型:B—流域
     */
    public static final String AREA_ARTP = "B";
    /**
     * 水库
     */
    public static final String RSVR_ARTP = "S";
    /**
     * 蓄滞洪区
     */
    public static final String STORE_ARTP = "X";
    /**
     * 水库
     */
    public static final String DISP_ARTP = "D";
    /**
     * O—水库出库
     */
    public static final String STATION_TYPE_O = "O";
    /**
     * R—河道站
     */
    public static final String STATION_TYPE_R = "R";
    /**
     * I—水库入库
     */
    public static final String STATION_TYPE_I = "I";
    // String Constant
    public static final String SINGLE = "single";
    public static final String ARRAY = "array";
    public static final String INT = "int";
    public static final String DOUBLE = "double";
    public static final String RANGE = "range";
    public static final String SELECT_RANGE = "select-range";
    //
    public static final String PARAMETER = "PARAMETER";
    public static final String LIMIT_1 = "limit 1";
    //
    public static final String FLOOD_VOLUME_ERROR = "floodVolumeError";
    public static final String FLOOD_PEAK_ERROR = "floodPeakError";
    public static final String PEAK_TIME_ERROR = "peakTimeError";
    public static final String COEFFICIENT_OF_DETERMINATION = "coefficientOfDetermination";
    public static final String COEFFICIENT_OF_DETERMINATION_SINGLE = "coefficientOfDeterminationSingle";
    //
    public static final String RSVR = "rsvr";
    public static final String RIVER = "river";
    public static final Set<String> TYPE_SET = new HashSet<>();
    //
    public static final String STAT_LATEST = "latest";
    public static final String STAT_WORST = "worst";
    //
    public static final String STATIC = "stat";

    public static final String COMMA = ",";

    static {
        TYPE_SET.add(RSVR);
        TYPE_SET.add(RIVER);
    }
}
